package com.teyao.teyao_back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.teyao.teyao_back.entity.ResponseMessage;
import com.teyao.teyao_back.entity.Vehicle;

import com.teyao.teyao_back.mapper.VehicleMapper;

import com.teyao.teyao_back.service.VehicleService;
import org.springframework.stereotype.Service;

@Service
public class VehicleServiceImpl extends ServiceImpl<VehicleMapper, Vehicle> implements VehicleService {
    @Override
    public ResponseMessage selectAll() {
        ResponseMessage responseMessage = new ResponseMessage();
        responseMessage.setData(baseMapper.selectList(null));
        return responseMessage;
    }
}
